Package com.cisco.pt.ipc.ui.impl
Class UserCreatedPDUImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.ui.impl.UserCreatedPDUImpl
- All Implemented Interfaces:
IPCObject,UserCreatedPDU
Information provided by the PKI file:
\class UserCreatedPDU
\brief The UserCreatedPDU widget holds all the user created pdus for different scenarios.
\example appWindow().getUserCreatedPDU()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionUserCreatedPDUImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateScenario(int index) Information provided by the PKI file:addSimplePdu(String src, String dst) Information provided by the PKI file:voidcolorPDU(int index) Information provided by the PKI file:voiddeletePDU(int index) Information provided by the PKI file:voidInformation provided by the PKI file:voideditPDU(int index) Information provided by the PKI file:voidfirePDU(int index) Information provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:voidsetDisabled(boolean bDisable) Information provided by the PKI file:voidsetScenarioDescription(String description) Information provided by the PKI file:voidsetVisible(boolean bVisible) Information provided by the PKI file:voidsetWidgetDisable(String widgetName, boolean bDisable) Information provided by the PKI file:voidsetWidgetVisible(String widgetName, boolean bVisible) Information provided by the PKI file:voidtoggleOpenListWindowBtn(boolean bEnable) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
UserCreatedPDUImpl
public UserCreatedPDUImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setVisible
public void setVisible(boolean bVisible) Information provided by the PKI file:
\brief Shows or hides this widget from view. \param bVisible, true to show this widget, false to hide it.- Specified by:
setVisiblein interfaceUserCreatedPDU- Parameters:
bVisible- Takes in a parameter of bVisible
-
setWidgetVisible
Information provided by the PKI file:
\brief Shows or hides the specified child widget. \param widgetName, where widgetName can be one of the following: NewScenarioBtn, DeleteScenarioBtn, OpenListWindowBtn, RemovePDUBtn. \param bVisible, true to show this child widget, false to hide it.- Specified by:
setWidgetVisiblein interfaceUserCreatedPDU- Parameters:
widgetName- Takes in a parameter of widgetNamebVisible- Takes in a parameter of bVisible
-
setDisabled
public void setDisabled(boolean bDisable) Information provided by the PKI file:
\brief Enables or disables input events to this widget. \param bDisabled, true to disable input events to this widget, false to enable input events.- Specified by:
setDisabledin interfaceUserCreatedPDU- Parameters:
bDisable- Takes in a parameter of bDisable
-
setWidgetDisable
Information provided by the PKI file:
\brief Enables or disables the specified child widget. \param widgetName, where widgetName can be one of the following: NewScenarioBtn, DeleteScenarioBtn, OpenListWindowBtn, RemovePDUBtn. \param bDisabled, true to disable input events to this child widget, false to enable input events.- Specified by:
setWidgetDisablein interfaceUserCreatedPDU- Parameters:
widgetName- Takes in a parameter of widgetNamebDisable- Takes in a parameter of bDisable
-
activateScenario
public void activateScenario(int index) Information provided by the PKI file:
\brief Changes the scenario to the specified index. \param index, the index of the scenario of interest.- Specified by:
activateScenarioin interfaceUserCreatedPDU- Parameters:
index- Takes in a parameter of index
-
deleteScenarioBtn_clicked
public void deleteScenarioBtn_clicked()Information provided by the PKI file:
\brief Simulates clicking on the Delete scenario button.- Specified by:
deleteScenarioBtn_clickedin interfaceUserCreatedPDU
-
newScenarioBtn_clicked
public void newScenarioBtn_clicked()Information provided by the PKI file:
\brief Simulates clicking on the New scenario button.- Specified by:
newScenarioBtn_clickedin interfaceUserCreatedPDU
-
scenarioInfoBtn_clicked
public void scenarioInfoBtn_clicked()Information provided by the PKI file:
\brief Simulates clicking on the scearnio info "i" button.- Specified by:
scenarioInfoBtn_clickedin interfaceUserCreatedPDU
-
toggleOpenListWindowBtn
public void toggleOpenListWindowBtn(boolean bEnable) Information provided by the PKI file:
\brief Shows or hides the Toggle PDU List Window. \param bEnable, true to show the Toggle PDU List Window, false to hide it.- Specified by:
toggleOpenListWindowBtnin interfaceUserCreatedPDU- Parameters:
bEnable- Takes in a parameter of bEnable
-
setScenarioDescription
Information provided by the PKI file:
\brief Sets the description for the current scenario. \param description, the description for the current scenario.- Specified by:
setScenarioDescriptionin interfaceUserCreatedPDU- Parameters:
description- Takes in a parameter of description
-
firePDU
public void firePDU(int index) Information provided by the PKI file:
\brief Sends out the PDU at the specified index. \param index, the index of the PDU of interest.- Specified by:
firePDUin interfaceUserCreatedPDU- Parameters:
index- Takes in a parameter of index
-
colorPDU
public void colorPDU(int index) Information provided by the PKI file:
\brief Opens the color picker for the PDU at the specified index. \param index, the index of the PDU of interest.- Specified by:
colorPDUin interfaceUserCreatedPDU- Parameters:
index- Takes in a parameter of index
-
editPDU
public void editPDU(int index) Information provided by the PKI file:
\brief Opens the edit pdu dialog for the pdu at the specified index \param int index, the index of interest- Specified by:
editPDUin interfaceUserCreatedPDU- Parameters:
index- Takes in a parameter of index
-
deletePDU
public void deletePDU(int index) Information provided by the PKI file:
\brief Removes the PDU at the specified index. \param index, the index of the PDU of interest.- Specified by:
deletePDUin interfaceUserCreatedPDU- Parameters:
index- Takes in a parameter of index
-
addSimplePdu
Information provided by the PKI file:
\brief Adds a simple pdu to the simulation using only device names \param src, the source device name \param dst, the destination device name- Specified by:
addSimplePduin interfaceUserCreatedPDU- Parameters:
src- Takes in a parameter of srcdst- Takes in a parameter of dst- Returns:
- ADD_PDU_ERROR Returns a ADD_PDU_ERROR
-